package com.showde.shoppingmall.business;

import com.showde.shoppingmall.business.NetCallbackImplBase.Notify;
import com.showde.shoppingmall.netentity.ProductCollectionEntity;
import com.showde.shoppingmall.netentity.ProductCollectionEntity.CollectionOperatorType;

public class ProductCollectionBusiness extends BusinessBase {

	private String productId;
	private CollectionOperatorType collectionOperatorType;

	public ProductCollectionBusiness(String productId, Notify notify,
			CollectionOperatorType collectionOperatorType) {
		super(notify);
		this.productId = productId;
		this.collectionOperatorType = collectionOperatorType;
		prepare();
	}

	public ProductCollectionBusiness(Notify notify) {
		super(notify);
		prepare1();
	}

	@Override
	public void prepare() {
		this.netEntity = new ProductCollectionEntity(productId,
				collectionOperatorType);
	}

	public void prepare1() {
		this.netEntity = new ProductCollectionEntity();
	}

}
